
export const getTableColumns = ({ params }) => [
	{
		title: "接口编号",
		dataIndex: "id",
		width: 140,
		ellipsis: true
	},
	{
		title: "请求路径",
		dataIndex: "interUrl",
		width: 140,
		ellipsis: true
	},
	{
		title: "IP地址",
		dataIndex: "accessIp",
		width: 140,
		ellipsis: true
	},
	{
		title: "请求参数",
		dataIndex: "params",
		width: 140,
		ellipsis: true
	},
	{
		title: "请求响应",
		dataIndex: "resultInfo",
		width: 100,
		ellipsis: true,
	},
	{
		title: "操作时间",
		dataIndex: "createTime",
		width: 100,
		ellipsis: true,
	},
	{
		title: "消耗时长(ms)",
		dataIndex: "cost",
		width: 100,
		ellipsis: true,
	},
];

export const USER_STATUS = [
	{ label: '在线', value: 1 },
	{ label: '离线', value: 2 }
]

export const getSearchColumns = () => [
	{
		type: "input",
		placeholder: "请求路径",
		name: "interUrl"
	},
	{
		type: "input",
		placeholder: "IP地址",
		name: "accessIp"
	},
	{
		type: "input",
		placeholder: "操作时间",
		name: "createTime"
	},
]